<template>
  <div>
    <div class="head">
      <img :src="'back.png' | imagePath" />
      <p>添加充电桩</p>
      <span></span>
    </div>
    <div class="chargerAdd">
      <div class="chargerAdd-title">充电桩编号</div>
      <div class="chargerAdd-item">
        <span>编号:</span>
        <input type="text" placeholder="请输入编号">
        <img :src="'sm.png' | imagePath" class="sm"/>
      </div>
      <div class="chargerAdd-item">
        <span>IMEI:</span>
        <input type="text" placeholder="请输入IMEI">
        <img :src="'sm.png' | imagePath" class="sm"/>
      </div>
    </div>
    <div class="chargerAdd">
      <div class="chargerAdd-title">费用设置</div>
      <div class="chargerAdd-item">
        <span>收费标准:</span>
        <input type="text" placeholder="请输入分钟">
        <em>/元</em>
      </div>
      <div class="chargerAdd-item">
        <span>保底消费:</span>
        <input type="text" placeholder="请输入价格">
        <em>元</em>
      </div>
      <div class="chargerAdd-item">
        <span>最大功率:</span>
        <input type="text" placeholder="请输入最大功率">
        <em>W</em>
      </div>
    </div>
    <div class="chargerAdd">
      <div class="chargerAdd-title">详细地址</div>
      <div class="chargerAdd-item">
        <span>地址:</span>
        <input
          type="text"
          placeholder="请选择地址"
          readonly="readonly"
          @click="$.router.push('address')">
        <img :src="'toRight.png' | imagePath" class="toMore"/>
      </div>
      <div class="chargerAdd-item">
        <span>地址描述:</span>
        <input
          type="text"
          placeholder="请输入详细地址"
        >
      </div>
    </div>
    <div class="chargerAdd-btn">添加</div>
  </div>
</template>

<script>
  export default{
    data(){
      return{}
    },
    beforeCreate() {
      document.querySelector('body').setAttribute('style', ' background:#F4F4F4')
    }
  }
</script>
<style>
.chargerAdd-title{
  font-size: 0.32rem;
  color: #999999;
  margin: 0 0.4rem;
  line-height: 1.09rem;
}
.chargerAdd-item{
  background-color: #FFFFFF;
  height: 1.33rem;
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #EEEEEE;
}
.chargerAdd-item span{
  color: #333333;
  font-size: 0.34rem;
  width: 2rem;
}
.chargerAdd-item input{
  flex: 1;
}
.chargerAdd-item .sm{
  width: 0.68rem;
  height: 0.68rem;
}
.chargerAdd-item em{
  font-size: 0.34rem;
}
.chargerAdd-item .toMore{
  margin-right: 0;
  width: 0.1rem;
  height: 0.24rem;
}
.chargerAdd-btn{
  width: 9.2rem;
  height: 1.06rem;
  line-height: 1.06rem;
  border-radius: 0.53rem;
  font-size: 0.42rem;
  color: #FFFFFF;
  background-color: #6DC5C6;
  margin: 0.66rem auto;
  text-align: center;
}
</style>
